package czx.wt.system.pojo;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: ChenZhiXiang
 * @Date: 2019/6/18 22:41
 * @Description: 用户和角色关联实体类
 */
@TableName("sys_user_role")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="用户角色对象")
public class UserRole implements Serializable {

    private static final long serialVersionUID = -3670218403267849231L;

    @TableId
    @ApiModelProperty(value = "主键",example = "1")
    private Integer id;

    @ApiModelProperty(value = "用户编码",example = "1")
    private Integer userId;

    @ApiModelProperty(value = "角色编码",example = "1")
    private Integer roleId;

    @ApiModelProperty(value = "创建时间",example = "")
    private Date createTime;
}
